﻿using Face8280WebSocketServer.DB.Device;
using Face8280WebSocketServer.Interface;
using Face8280WebSocketServer.Utility.VerifyAttribute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Controllers.FaceDevice
{
    /// <summary>
    /// 更新设备的参数
    /// </summary>
    public class DeviceUpdateParameter :DeviceBaseParameter
    {
        /// <susnmmary>
        /// 设备SN
        /// </summary>
        [VerifyNum(iMax: int.MaxValue, iMin: 1, errCode: 100, sErrorDesc: "设备ID不能为空")]
        public int ID { get; set; }

        

        /// <summary>
        /// 讲参数拷贝到 FaceDeviceDetail
        /// </summary>
        /// <param name="target"></param>
        /// <returns></returns>
        public override FaceDeviceDetail CopyTo(FaceDeviceDetail target)
        {
            target.ID = ID;
            
            return base.CopyTo(target);
        }
    }
}
